package com.zx.easy.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@TableName(value = "account_freeze_tbl")
public class AccountFreezeTbl {
    @TableId(value = "xid", type = IdType.AUTO)
    private String xid;

    @TableField(value = "user_id")
    private String userId;

    @TableField(value = "freeze_money")
    private Integer freezeMoney;

    /**
     * 事务状态，0:try，1:confirm，2:cancel
     */
    @TableField(value = "`state`")
    private Integer state;

    public static final String COL_XID = "xid";

    public static final String COL_USER_ID = "user_id";

    public static final String COL_FREEZE_MONEY = "freeze_money";

    public static final String COL_STATE = "state";
}